package com.longlong.backend.dao;

import com.longlong.backend.domain.User;
import com.longlong.backend.util.MySqlSessionFactory;
import org.apache.ibatis.session.SqlSession;

/**
 * @author longlong
 * @date 2025/1/26
 */
public class UserDao {

    private SqlSession sqlSession = MySqlSessionFactory.getSqlSession(true);

    public User selectById(int id) {
        return sqlSession.selectOne("com.longlong.backend.mapper.UserMapper.selectById", id);
    }

}
